﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014D9 RID: 5337
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpgradeAreaCsReq : IMessage<UpgradeAreaCsReq>, IMessage, IEquatable<UpgradeAreaCsReq>, IDeepCloneable<UpgradeAreaCsReq>, IBufferMessage
	{
		// Token: 0x1700432D RID: 17197
		// (get) Token: 0x0600EEAC RID: 61100 RVA: 0x0027D610 File Offset: 0x0027B810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpgradeAreaCsReq> Parser
		{
			get
			{
				return UpgradeAreaCsReq._parser;
			}
		}

		// Token: 0x1700432E RID: 17198
		// (get) Token: 0x0600EEAD RID: 61101 RVA: 0x0027D617 File Offset: 0x0027B817
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpgradeAreaCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700432F RID: 17199
		// (get) Token: 0x0600EEAE RID: 61102 RVA: 0x0027D629 File Offset: 0x0027B829
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpgradeAreaCsReq.Descriptor;
			}
		}

		// Token: 0x0600EEAF RID: 61103 RVA: 0x0027D630 File Offset: 0x0027B830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaCsReq()
		{
		}

		// Token: 0x0600EEB0 RID: 61104 RVA: 0x0027D638 File Offset: 0x0027B838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaCsReq(UpgradeAreaCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EEB1 RID: 61105 RVA: 0x0027D669 File Offset: 0x0027B869
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaCsReq Clone()
		{
			return new UpgradeAreaCsReq(this);
		}

		// Token: 0x17004330 RID: 17200
		// (get) Token: 0x0600EEB2 RID: 61106 RVA: 0x0027D671 File Offset: 0x0027B871
		// (set) Token: 0x0600EEB3 RID: 61107 RVA: 0x0027D679 File Offset: 0x0027B879
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x17004331 RID: 17201
		// (get) Token: 0x0600EEB4 RID: 61108 RVA: 0x0027D682 File Offset: 0x0027B882
		// (set) Token: 0x0600EEB5 RID: 61109 RVA: 0x0027D68A File Offset: 0x0027B88A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600EEB6 RID: 61110 RVA: 0x0027D693 File Offset: 0x0027B893
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpgradeAreaCsReq);
		}

		// Token: 0x0600EEB7 RID: 61111 RVA: 0x0027D6A1 File Offset: 0x0027B8A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpgradeAreaCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EEB8 RID: 61112 RVA: 0x0027D6E0 File Offset: 0x0027B8E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EEB9 RID: 61113 RVA: 0x0027D738 File Offset: 0x0027B938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EEBA RID: 61114 RVA: 0x0027D740 File Offset: 0x0027B940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EEBB RID: 61115 RVA: 0x0027D74C File Offset: 0x0027B94C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Level);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EEBC RID: 61116 RVA: 0x0027D7A8 File Offset: 0x0027B9A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EEBD RID: 61117 RVA: 0x0027D800 File Offset: 0x0027BA00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpgradeAreaCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EEBE RID: 61118 RVA: 0x0027D850 File Offset: 0x0027BA50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EEBF RID: 61119 RVA: 0x0027D85C File Offset: 0x0027BA5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AreaId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E50 RID: 24144
		private static readonly MessageParser<UpgradeAreaCsReq> _parser = new MessageParser<UpgradeAreaCsReq>(() => new UpgradeAreaCsReq());

		// Token: 0x04005E51 RID: 24145
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E52 RID: 24146
		public const int AreaIdFieldNumber = 14;

		// Token: 0x04005E53 RID: 24147
		private uint areaId_;

		// Token: 0x04005E54 RID: 24148
		public const int LevelFieldNumber = 3;

		// Token: 0x04005E55 RID: 24149
		private uint level_;
	}
}
